package com.ruoyi.carbon.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 发货单明细对象 scm_sale_delivery_detail
 * 
 * @author ruoyi
 * @date 2024-11-22
 */
public class ScmSaleDeliveryDetail extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 编号 */
    private Long id;

    /** 发货id */
    @Excel(name = "发货id")
    private Long deliveryId;

    /** 物料id */
    @Excel(name = "物料id")
    private Long materialId;

    private WmsMaterialInfo materialInfo;

    /** 发货数量 */
    @Excel(name = "发货数量")
    private Long quantity;

    /** 退货数量 */
    @Excel(name = "退货数量")
    private Long returnQuantity;

    /** 备注 */
    @Excel(name = "备注")
    private String detailRemark;

    public ScmSaleDeliveryDetail() {
    }

    public ScmSaleDeliveryDetail(long serialVersionUID, Long id, Long deliveryId, Long materialId, WmsMaterialInfo materialInfo, Long quantity, Long returnQuantity, String detailRemark) {

        this.id = id;
        this.deliveryId = deliveryId;
        this.materialId = materialId;
        this.materialInfo = materialInfo;
        this.quantity = quantity;
        this.returnQuantity = returnQuantity;
        this.detailRemark = detailRemark;
    }

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setDeliveryId(Long deliveryId) 
    {
        this.deliveryId = deliveryId;
    }

    public Long getDeliveryId() 
    {
        return deliveryId;
    }
    public void setMaterialId(Long materialId) 
    {
        this.materialId = materialId;
    }

    public Long getMaterialId() 
    {
        return materialId;
    }
    public void setQuantity(Long quantity) 
    {
        this.quantity = quantity;
    }

    public Long getQuantity() 
    {
        return quantity;
    }
    public void setReturnQuantity(Long returnQuantity) 
    {
        this.returnQuantity = returnQuantity;
    }

    public Long getReturnQuantity() 
    {
        return returnQuantity;
    }
    public void setDetailRemark(String detailRemark) 
    {
        this.detailRemark = detailRemark;
    }

    public String getDetailRemark() 
    {
        return detailRemark;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("deliveryId", getDeliveryId())
            .append("materialId", getMaterialId())
            .append("quantity", getQuantity())
            .append("returnQuantity", getReturnQuantity())
            .append("detailRemark", getDetailRemark())
            .toString();
    }

    /**
     * 获取
     * @return materialInfo
     */
    public WmsMaterialInfo getMaterialInfo() {
        return materialInfo;
    }

    /**
     * 设置
     * @param materialInfo
     */
    public void setMaterialInfo(WmsMaterialInfo materialInfo) {
        this.materialInfo = materialInfo;
    }
}
